<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>岗位查看页面</title>
    <script src="../../../../../res/js/jquery-3.4.1.min.js"></script>
    <script  src="../../../../../res/layui/layui.js" charset="utf-8"></script>
    <script src="../../../../../res/js/Tools.js"></script>
    <link href="../../../../../res/layui/css/layui.css" media="all" rel="stylesheet">
    <link href="../../../../../res/echarts/eleTree.css" rel="stylesheet"/>
    <script src="../../../../../res/echarts/eleTree.js"></script>
    <link rel="shortcut icon" type="image/x-icon" href="../../../../../res/images/favicon.ico">
    <script charset="utf-8" src="../../../../../res/js/login_common.js"></script>
    <style type="text/css">
        body {
            padding: 10px;
        }
        .showFont{
            line-height: 38px;
        }
    </style>
</head>
<body>
<form action="" class="layui-form layui-form-pane">
    <input type="hidden" id="pkPostId" name="pkPostId">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">岗位名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" id="postName" type="text" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">部门</label>
            <div class="layui-input-inline">
                <input class="layui-input"  id="departmentId" type="text" readonly>

            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">岗位领导</label>
            <div class="layui-input-inline">
                <input class="layui-input"  id="personnelId" type="text" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">关键字</label>
            <div class="layui-input-inline" style="float: left">
                <input class="layui-input" id="keyword" type="text" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">排序号</label>
            <div class="layui-input-inline" style="float: left">
                <input class="layui-input" id="postSort" type="text" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width:150px"> 组织架构编号</label>
            <div class="layui-input-inline">
                <input class="layui-input" id="organizationCode"  type="text" readonly>
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea"  id="remark" readonly ></textarea>
        </div>
    </div>


</form>
<script>
    var form=null;
    layui.use(['form', 'layedit', 'laydate', 'layer'], function () {
        form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate;
        //表单取值
        layui.$('#LAY-component-form-getval').on('click', function () {
            var data = form.val('example');
        });
        //修改操作
        var ide = getQueryString("pkPostId");
        if (ide) {
            findById(ide);//修改页面的赋值
        }

        //重新渲染表单函数
        function renderForm() {
            layui.use('form', function () {
                var form = layui.form(); //高版本建议把括号去掉，有的低版本，需要加()
                form.render();
            });
        }
        form.render();
    });
    function findById(ide) {
        var url = getRootPath() + "OaOrganizationAction/findById/" + ide;
        var data=getAjaxById(url);
        $("#pkPostId").val(data.data.pkPostId);
        $("#postName").val(data.data.postName);
        $("#departmentId").val(data.data.departmentName);
        $("#organizationCode").val(data.data.organizationCode);
        $("#personnelId").val(data.data.personnelName);
        $("#keyword").val(data.data.keyword);
        $("#postSort").val(data.data.postSort);
        form.render("select");
    }
</script>
</body>
</html>